package com.timebank.volunteer.service;

import com.timebank.common.core.web.pojo.AjaxResult;
import com.timebank.volunteer.pojo.entity.VolunteerAttendList;
import com.timebank.volunteer.pojo.vo.VolunteerAttendListVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 志愿服务 出席名单
 * @author shiliuyinzhen
 */
@Service
public interface VolunteerAttendListService {

    /**
     * 根据志愿服务Id获取出席名单
     * @param volunteerId
     * @return
     */
    List<VolunteerAttendListVO> getAttendListByVolunteerId(Long volunteerId);

    /**
     * 批量删除出席名单
     * @param volunteerId
     * @param userIds
     * @return
     */
    AjaxResult deleteAttendListByVolunteerIdAndUserIds(Long volunteerId, Long[] userIds);

    /**
     * 批量添加出席名单
     * @param volunteerId
     * @param userIds
     * @return
     */
    AjaxResult batchInsertAttendList(Long volunteerId, Long[] userIds);
}
